package com.itheima.Object;

public class TestStudent {
    public static void main(String[] args) {
      Student s1 =  getStudentInfo("波仔",50,100);
      Student s2 =  getStudentInfo("波妞",100,100);
      s1.printSumScore();
      s1.printAvgScore();
      System.out.println("--------------------------------------------------------");
      s2.printSumScore();
      s2.printAvgScore();
    }
    public static Student getStudentInfo(String name, double chineseScore, double mathScore) {
        Student s = new Student();
        s.name = name;
        s.chineseScore = chineseScore;
        s.mathScore = mathScore;
        return s;
    }
}
